import SvgIcon from "./SvgIcon/index.vue";
import Total from "./Total/index.vue";
import Foldbox from "./Foldbox/index.vue";
import Tooltip from "./Tooltip/index.vue";
import Feedback from "./Feedback/index.vue";
import BackTop from "./BackTop/index.vue";
import ContentHeader from "./ContentHeader/index.vue";
import Editor from "./Editor/index.vue";
import Banner from "./Banner/index.vue";
import Card from "./Card/index.vue";
import QrCode from "./QrCode/index.vue";

// 全局对象
const allGlobalComponent = {
  SvgIcon,
  Total,
  Foldbox,
  Tooltip,
  Feedback,
  BackTop,
  ContentHeader,
  Editor,
  Banner,
  Card,
  QrCode
};

export default {
  install(app) {
    Object.keys(allGlobalComponent).forEach((key) => {
      app.component(key, allGlobalComponent[key]);
    });
  },
};
